package cn.yaboya.user.mapper;

import cn.yaboya.user.domain.Logininfo;
import cn.yaboya.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yaboya
 * @since 2022-07-04
 */
@Mapper
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    Logininfo loadByUsernameAndType(@Param("username")String username, @Param("type") Integer type);

    Logininfo loadByUserId(Long userId);
}
